Skip to main content

Update Phone Verification

PATCH /api/v1/users/{userId}/countries/{dialingCode}/phone/{phone}/verification

Description​

Update phone verification for a user.

Path Parameters​

NameTypeDescription
userIdstringThe user ID (path)
phonestringThe phone number (path)
dialingCodestringThe country dialing code (path)

Request Body​

  • Content Type: application/json
{
"verificationCode": "string"
}

Response Code: 200 - OK​

Description

Phone verification updated successfully.

Response Fields​

FieldTypeDescription
statusbooleanIndicates if the operation was successful
statusCodeintegerStatus code
messagestringResponse message
dataobjectData related to the phone verification
{
"status": true,
"statusCode": 0,
"message": "Phone verification updated successfully",
"data": {}
}

Method: PATCH​

>http://your-api-url/api/v1/users/{userId}/countries/{dialingCode}/phone/{phone}/verification

Headers​

Content-TypeValue
apiKey{{apiKey}}

Body​

{
"verificationCode": "123456"
}

🔑 Authentication bearer​

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/users/{userId}/countries/{dialingCode}/phone/{phone}/verification \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!